/**
 * 预充值
 */
import request from "@/server/request.js";

// 预充值余额查询
export const balanceApi = (params) => {
	return new request().requestGet(`/api/prepaid/balance`, params);
};

// 预充值充值地址
export const rechargeAddress = (params) => {
	return new request().requestPost(`/api/prepaid/rechargeAddress`, params);
};

// 预充值历史记录
export const prepaidHistory = (params) => {
	return new request().requestGet(`/api/prepaid/history`, params);
};

// 开仓保证金计算
export const calcDeposit = (params) => {
	return new request().requestPost(`/api/prepaid/calcDeposit`, params);
};